﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess.Domain
{
    [Table("Business")]
    public class Business
    {
        [Key,ForeignKey("Account")]
        public int Id { get; set; }
        [MaxLength(20)]
        [Required]
        public string NameCompany { get; set; }
        [MaxLength(1000)]
        public string Introduction { get; set; }
        [MaxLength(50)]
        public string Address { get; set; }
        [MaxLength(15)]
        public string PhoneNumber { get; set; }
         [MaxLength(30)]
        public string Fax { get; set; }
         [MaxLength(30)]
        public string Website { get; set; }
        
        public virtual Account Account { get; set; }

        public virtual IList<Product> Products { get; set; }

    }
}
